package cn.heygod.nacostool.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Arrays;
import java.util.List;

/**
 * @Author Simon
 */
@Configuration
@ConfigurationProperties(prefix = "deploy")
@Data
public class DeployConfig {

    private String username;

    private String password;

    private String env;

    private String[] services;

    public List<String> getServicesList(){
        return Arrays.asList(services);
    }

}
